<?php /* Smarty version Smarty-3.1.6, created on 2012-11-28 18:05:20
         compiled from "./index/Tpl\index\test.html" */ ?>
<?php /*%%SmartyHeaderCode:1834950b48c144a1154-71172241%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a39f890d97c922bc529c8c4568831b21bc2b2be6' => 
    array (
      0 => './index/Tpl\\index\\test.html',
      1 => 1354097112,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1834950b48c144a1154-71172241',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_50b48c1452ee9',
  'variables' => 
  array (
    'appkey' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b48c1452ee9')) {function content_50b48c1452ee9($_smarty_tpl) {?><script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=<?php echo $_smarty_tpl->tpl_vars['appkey']->value;?>
"></script>
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/kissy.js"></script>
<script>
KISSY.getScript("http://www.taobao.com/go/app/tmall/login-api.php?"+Math.random())  
/*
$.getScript("http://www.taobao.com/go/app/tmall/login-api.php?"+Math.random(),function(data,status){
	alert(userCookie._nk_);	
	alert(userCookie.mt);
	
});
*/
</script>
<script>
TOP.init({ 
       appKey :12587554,//appkey 
      channelUrl : 'http://think.jackc.com/channel.html' ,
	  auth :1,
	  status : 1
});
TOP.ui('login-btn', {
	container: '#taobao-login',//组件容器
	showAvatar: true, //是否显示头像
	showUserLink: true,//是否生成链接 
	showLogout: true, //是否显示退出
	callback: {
		login:function (){
			alert('login success!');
		}, //登录成功回调函数
		logout: null//退出成功回调函数
        }})
</script>
<div id="taobao-login"> </div>
<?php }} ?>